﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ImageList.aspx.cs" Inherits="BusinessData_IMAGES_ImageList" %>

<%@ Register Src="~/UserControl/GridPager.ascx" TagName="GridPager" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .style1
        {
            font-size: 12px;
            line-height: 15px;
            border: 1px solid #2BB3D5;
            width: 120px;
            height: 150px;
            text-align: center;
            padding: 2px;
            vertical-align: top;
        }
        .style2
        {
        }
        img
        {
            border: 0;
        }
    </style>
    <div>
        <table id="wsd_inputtable">
            <tr>
                <td class="tabletitle" colspan="3">
                    &nbsp;照片列表
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    照片类型:
                </td>
                <td>
                    <asp:DropDownList ID="drpPhotoType" runat="server" Width="130"  datatextfield="name"
                        datavaluefield="dictionaryitemid">
                    </asp:DropDownList>
                </td>
               
                <td class="buttonarea">
                    <asp:Button ID="btnQuery" runat="server" class="wsd_button2" Text="<%$ resources:language, btn_Query%>"
                        OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
        <table id="wsd_listtable" width="100%">
            <tr>
                <td style="width: 100%">
                    <div style="overflow: auto">
                        <asp:DataList runat="server" RepeatColumns="6" EmptyDataText="没有可显示的数据." RepeatDirection="Horizontal"
                            RepeatLayout="Table" Width="99%" ID="dlPhotos" ItemStyle-CssClass="style2">
                            <ItemTemplate>
                                <div class="style1">
                                    <span style="vertical-align: middle; text-align: center; height: 100px"><a href='<%#"../../IMAGE.ASPX?"+Eval("ID")%>'
                                        target="_blank" style="text-decoration: none">
                                        <img src='<%#"../../SMALLIMAGE.ASPX?H=100&W=100&ID="+Eval("ID") %>' alt='上传时间:<%# GetDateTime(Eval("LAST_UPDATE_TIME"))%>' />
                                    </a></span>
                                    <div style="text-align: center;">
                                        <font size="1">上传时间:<%# GetDateTime(Eval("LAST_UPDATE_TIME"))%></font><br />
                                        <%# GetPhotoType(Eval("PHOTO_TYPE_ID"))%><br />
                                        <asp:LinkButton runat="server" OnClick="IMAGE_DELETE" CommandArgument='<%# Eval("ID") %>'
                                            OnClientClick="return confirm('您真的要删除吗，此操作不可逆');" ID="LinkButton2" Text="删除"></asp:LinkButton>
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                    </div>
                    <table width="100%" class="pagination" cellpadding="0px" cellspacing="0px" border="0">
                        <tr>
                            <td style="height: 32px">
                                <div class="wsd_pageleft">
                                    <asp:Button CssClass="wsd_pagebutton" CommandName="FIRST" ID="btnFirst" runat="server"
                                        CausesValidation="false" OnClick="btnPage_Click" Text="<%$resources:language,lbl_First_Page %>" />
                                    <asp:Button CssClass="wsd_pagebutton" CommandName="PREVIOUS" ID="btnPrevious" runat="server"
                                        CausesValidation="false" OnClick="btnPage_Click" Text="<%$resources:language,lbl_PreviousPage %>" />
                                    <asp:Button CssClass="wsd_pagebutton" CommandName="NEXT" ID="btnNext" runat="server"
                                        CausesValidation="false" OnClick="btnPage_Click" Text="<%$resources:language,lbl_NextPage %>" />
                                    <asp:Button CssClass="wsd_pagebutton" CommandName="LAST" ID="btnLast" runat="server"
                                        CausesValidation="false" OnClick="btnPage_Click" Text="<%$resources:language,lbl_Last_Page %>" />
                                </div>
                                <div class="wsd_pageright">
                                    <asp:Label runat="server" ID="txtInfo"> </asp:Label>
                                    第<asp:TextBox CssClass="wsd_pageinput" ID="txtPage" runat="server" Width="40px"></asp:TextBox>
                                    页
                                    <asp:Button CssClass="wsd_pagegobutton" ID="btnGoto" runat="server" Text="Go" OnClick="btnGoto_Click" />
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
        <table id="wsd_inputtable">
            <tr>
                <td width="100%" class="tabletitle" colspan="4">
                    <asp:Literal ID="Literal1" runat="server" Text="<%$resources:language,lbl_Operation_Area %>"></asp:Literal>
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    照片1：
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="250px" />
                </td>
                <td class="tablefield">
                    照片类型:
                </td>
                <td>
                    <select runat="server" id="drpPhotoType1" style="width: 200px" datatextfield="name"
                        datavaluefield="dictionaryitemid">
                    </select>
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    照片2：
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload2" runat="server" Width="250px" />
                </td>
                <td class="tablefield">
                    照片类型:
                </td>
                <td>
                    <select runat="server" id="drpPhotoType2" style="width: 200px" datatextfield="name"
                        datavaluefield="dictionaryitemid">
                    </select>
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    照片3：
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload3" runat="server" Width="250px" />
                </td>
                <td class="tablefield">
                    照片类型:
                </td>
                <td>
                    <select runat="server" id="drpPhotoType3" style="width: 200px" datatextfield="name"
                        datavaluefield="dictionaryitemid">
                    </select>
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    照片4：
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload4" runat="server" Width="250px" />
                </td>
                <td class="tablefield">
                    照片类型:
                </td>
                <td>
                    <select runat="server" id="drpPhotoType4" style="width: 200px" datatextfield="name"
                        datavaluefield="dictionaryitemid">
                    </select>
                </td>
            </tr>
            <tr>
                <td class="tablefield">
                    照片5：
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload5" runat="server" Width="250px" />
                </td>
                <td class="tablefield">
                    照片类型:
                </td>
                <td>
                    <select runat="server" id="drpPhotoType5" style="width: 200px" datatextfield="name"
                        datavaluefield="dictionaryitemid">
                    </select>
                </td>
            </tr>
            <tr>
                <td class="buttonarea" colspan="4">
                    <asp:Button ID="btnUpload" runat="server" Text="上传图片" OnClick="btnUpload_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
